package com.smartcar.client.mapper;

import com.smartcar.client.domin.Annex;
import com.smartcar.client.domin.Consumption;
import com.smartcar.client.domin.Recharge;
import com.smartcar.client.domin.Vip;
import com.smartcar.client.vo.AnnexVo;
import com.smartcar.client.vo.ConsumptionVo;
import com.smartcar.client.vo.RechargeVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClientMapper {

    Annex findByAnnex(AnnexVo annexVo);




    List<Recharge> findByRecharge(RechargeVo rechargeVo);

    List<Consumption> findByConsumption(ConsumptionVo consumptionVo);

    Vip findByVipId(@Param("userId") String userId);

    Integer insertAnnex(Annex annex);

    Integer topUp(Annex annex);

    Integer insertVip(Vip vip);
}
